
//
//  XHMeViewController.m
//  BSNoAnswer
//
//  Created by Tiffany宝 on 16/5/12.
//  Copyright © 2016年 Tiffany. All rights reserved.
//

#import "XHMeViewController.h"

@interface XHMeViewController ()

@end

@implementation XHMeViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.navigationItem.title = @"我的";
//    UIButton *settingButton = [UIButton buttonWithType:UIButtonTypeCustom];
//    [settingButton setBackgroundImage:[UIImage imageNamed:@"mine-setting-icon"] forState:UIControlStateNormal];
//    [settingButton setBackgroundImage:[UIImage imageNamed:@"mine-setting-icon-click"] forState:UIControlStateHighlighted];
//    [settingButton sizeToFit];
//    UIButton *moonButton = [UIButton buttonWithType:UIButtonTypeCustom];
//    [moonButton setBackgroundImage:[UIImage imageNamed:@"mine-moon-icon"] forState:UIControlStateNormal];
//    [moonButton setBackgroundImage:[UIImage imageNamed:@"mine-moon-icon-click"] forState:UIControlStateHighlighted];
//    [moonButton sizeToFit];
//    self.navigationItem.rightBarButtonItems = @[[[UIBarButtonItem alloc]initWithCustomView:settingButton],
//                                                [[UIBarButtonItem alloc]initWithCustomView:moonButton]];
//    [settingButton addTarget:self action:@selector(settingButtonClick) forControlEvents:UIControlEventTouchUpInside];
//    [moonButton addTarget:self action:@selector(moonButtonClick) forControlEvents:UIControlEventTouchUpInside];
    self.navigationItem.rightBarButtonItems = @[
                                                [UIBarButtonItem itemWithImage:@"mine-setting-icon" highlightedImage:@"mine-setting-icon-click" target:self selector:@selector(settingButtonClick)],
                                                [UIBarButtonItem itemWithImage:@"mine-moon-icon" highlightedImage:@"mine-moon-icon-click" target:self selector:@selector(moonButtonClick)]
                                                ];
    self.view.backgroundColor = XHGrayColor(223);
}

-(void)settingButtonClick{
    
    XHLogFunc;
}

-(void)moonButtonClick{
    
    XHLogFunc;
}

@end
